import React, { Component } from 'react';
import {StyleSheet,View} from 'react-native';
import { Number } from 'iftide';

export default class User1 extends Component {
    iconPress() {
        alert('点击操作');
        console.log('Icon Press!');
    }
    
    render() {
      
        return (
            <View style={styles.container}>
                
                <Number
                type={2}
                label='输入标签'
                placeHolder='提示文字'
                showClearIcon={true}
                rightText='点击此处'
                rightFunc={()=>this.iconPress()}
                />
                <Number
                type={2}
                label='手机号码'
                inputType='mobilePhone'
                placeHolder='手机号码'
                showClearIcon={true}
                info={'默认号码(北京移动)'}
                />
            </View>
        );
    }


}

const styles = StyleSheet.create({
    container: {
        //flex: 1,
        flexDirection: "column",
      },
})
